package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.npc.UserNpcGangfen;
import com.yanqu.road.entity.npc.UserNpcTalk;
import com.yanqu.road.entity.npc.UserNpcTrade;
import com.yanqu.road.logic.bussiness.DaoHelper;

public class UserNpcEventBussiness {

	public static UserNpcTalk getUserNpcTalk(long userId) {
		return DaoHelper.getUserNpcTalkDaoImpl().getUserNpcTalk(userId);
	}

	public static boolean addUserNpcTalk(UserNpcTalk data) {
		return DaoHelper.getUserNpcTalkDaoImpl().add(data);
	}

	public static boolean updateUserNpcTalk(UserNpcTalk data) {
		return DaoHelper.getUserNpcTalkDaoImpl().update(data);
	}

	public static UserNpcTrade getUserNpcTrade(long userId){
		return DaoHelper.getUserNpcTradeDaoImpl().getUserNpcTrade(userId);
	}

	public static boolean addUserNpcTrade(UserNpcTrade data){
		return DaoHelper.getUserNpcTradeDaoImpl().add(data);
	}

	public static boolean updateUserNpcTrade(UserNpcTrade data){
		return DaoHelper.getUserNpcTradeDaoImpl().update(data);
	}


	public static UserNpcGangfen getUserNpcGangfen(long userId){
		return DaoHelper.getUserNpcGangfenDaoImpl().getUserNpcGanefen(userId);
	}

	public static boolean addUserNpcGangfen(UserNpcGangfen data){
		return DaoHelper.getUserNpcGangfenDaoImpl().add(data);
	}

	public static boolean updateUserNpcGangfen(UserNpcGangfen data){
		return DaoHelper.getUserNpcGangfenDaoImpl().update(data);
	}
}
